package com.hermes.test;

import java.util.ArrayList;
import java.util.List;

import com.hermes.biz.common.model.item.CategorysDO;
import com.hermes.biz.common.model.item.TagDO;
import com.hermes.biz.dao.item.CategorysDAO;
import com.hermes.biz.dao.item.TagsDAO;
import com.hermes.common.action.AsynBaseAction;

public class UpItem extends AsynBaseAction {
    /**  */
    private static final long serialVersionUID = 8440830982515439130L;
    public CategorysDAO       categorysDAO;
    public TagsDAO            tagsDAO;

    public void setTagsDAO(TagsDAO tagsDAO) {
        this.tagsDAO = tagsDAO;
    }

    public List<CategorysDO> categorysList;
    public List<TagDO>       tagsList;

    @Override
    public String execute() throws Exception {
        categorysList = new ArrayList<CategorysDO>();
        categorysList = categorysDAO.getCategorysList();

        tagsList = new ArrayList<TagDO>();
        tagsList = tagsDAO.getTagsList();

        return SUCCESS;
    }

    public CategorysDAO getCategorysDAO() {
        return categorysDAO;
    }

    public void setCategorysDAO(CategorysDAO categorysDAO) {
        this.categorysDAO = categorysDAO;
    }

    public TagsDAO getTagsDAO() {
        return tagsDAO;
    }
}
